{extends file="../global.html"}

{block name=body}
 
<style>

	 
</style>
{if $res|@count eq 0}
 <div class="container yuyue-top">
 	<div class="row ">
 		<h2 class="col-md-12 ft-32 hidden-xs title"> 我的预约</h2>
 		<h2 class="col-md-12 ft-18 hidden-md hidden-lg hidden-sm"> 我的预约</h2>
 			<div class="no-yueyue col-md-12 col-xs-12 " style="text-align: center;">
 				<div class="center-block">
 				<p>您还没有预约的车辆</p>
				<a href="{url('/type')}" class="btn btn-primary  " role="button">去逛逛</a>
				</div>
 			</div>
 	</div>
 </div>
{else}
<div class="container yuyue-top">
	<div class="row ">
		<h2 class="col-md-12 ft-32 hidden-xs title"> 我的预约</h2>
		<h2 class="col-md-12 ft-18 hidden-md hidden-lg hidden-sm"> 我的预约</h2>
		{foreach $res as $k=>$v}
		 <div class="col-md-4 col-sm-6 col-xs-12 wi-row">
			
			<div style="border:1px solid #ddd;" class="mar-di">

			<img src="{$absroot}{$v.goods_pic}" alt="" title="{$v.goods_model}款 {$v.goods_name} {$v.goods_describe} {$v.goods_car}" class="img-responsive" style="cursor: pointer;" onclick="goodsView({$v.goods_id})">
			<div class="car-content">
				<p class="p-title">{$v.goods_model}款 {$v.goods_name} {$v.goods_describe} {$v.goods_car}</p>
				<p class="p-monney col-j">首付 <span>{$v.goods_payment}</span>万 月供{$v.goods_month}元</p>

				<p class="p-time col-j">预约时间</p>
				<p class="p-time col-j">{$v.subscribe_time|date_format:'%Y年-%m月-%d日'}</p>
				<div class="store">
					<div>
					<p >门店电话</p>
					<p>{$v.store_name.store_phone}</p>
					</div>
				</div>
				<div class="cty">
					<div>
						<p>{$v.store_name.store_company}</p>
						<p>{$v.subscribe_ctiy_name}</p>
						<p class="map-col"><a href="http://api.map.baidu.com/geocoder?address={$v.subscribe_ctiy_name}&output=html&src=yourCompanyNa" target="_blank">查看地图</a></p>
					</div>
				</div>
			</div>
			</div>

		 </div>
		 {/foreach}
	</div>
</div>
 {/if}
<script type="text/javascript">
 
 	function goodsView(goodsId){
 		// alert(goodsId);
 		 location.href="{$absroot}details/"+goodsId;
 	}
 

 
</script>
{/block}